﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VietThuongLMS.ViewModels;
using System.Web.Mvc;
using System.Data.Entity;
using VietThuongLMS.Utils;

///NHDuc
namespace VietThuongLMS.Services
{
    public class MonHocService
    {

        public List<MonHoc> GetMonHocList()
        {
            LMSDataEntities context = null;
            try
            {
                context = new LMSDataEntities();

                List<MonHoc> list = context.MonHocs.ToList();
                return list;
            }
            catch (Exception ex)
            {
                DCS.ComLib.File.Log.Write("MonHocServices::GetMonHocList", ex.StackTrace, ex.Message);
                return null;
            }
            finally
            {
                context.Dispose();
            }
        }


    }
}
